package com.san.hkhospital.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * ClassName:PermissionExample
 * PackageName:com.san.hkhospital.entity
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 19:26
 * 
 */
 
 
public class PermissionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PermissionExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPmsIdIsNull() {
            addCriterion("pms_id is null");
            return (Criteria) this;
        }

        public Criteria andPmsIdIsNotNull() {
            addCriterion("pms_id is not null");
            return (Criteria) this;
        }

        public Criteria andPmsIdEqualTo(Integer value) {
            addCriterion("pms_id =", value, "pmsId");
            return (Criteria) this;
        }

        public Criteria andPmsIdNotEqualTo(Integer value) {
            addCriterion("pms_id <>", value, "pmsId");
            return (Criteria) this;
        }

        public Criteria andPmsIdGreaterThan(Integer value) {
            addCriterion("pms_id >", value, "pmsId");
            return (Criteria) this;
        }

        public Criteria andPmsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pms_id >=", value, "pmsId");
            return (Criteria) this;
        }

        public Criteria andPmsIdLessThan(Integer value) {
            addCriterion("pms_id <", value, "pmsId");
            return (Criteria) this;
        }

        public Criteria andPmsIdLessThanOrEqualTo(Integer value) {
            addCriterion("pms_id <=", value, "pmsId");
            return (Criteria) this;
        }

        public Criteria andPmsIdIn(List<Integer> values) {
            addCriterion("pms_id in", values, "pmsId");
            return (Criteria) this;
        }

        public Criteria andPmsIdNotIn(List<Integer> values) {
            addCriterion("pms_id not in", values, "pmsId");
            return (Criteria) this;
        }

        public Criteria andPmsIdBetween(Integer value1, Integer value2) {
            addCriterion("pms_id between", value1, value2, "pmsId");
            return (Criteria) this;
        }

        public Criteria andPmsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pms_id not between", value1, value2, "pmsId");
            return (Criteria) this;
        }

        public Criteria andPmsNameIsNull() {
            addCriterion("pms_name is null");
            return (Criteria) this;
        }

        public Criteria andPmsNameIsNotNull() {
            addCriterion("pms_name is not null");
            return (Criteria) this;
        }

        public Criteria andPmsNameEqualTo(String value) {
            addCriterion("pms_name =", value, "pmsName");
            return (Criteria) this;
        }

        public Criteria andPmsNameNotEqualTo(String value) {
            addCriterion("pms_name <>", value, "pmsName");
            return (Criteria) this;
        }

        public Criteria andPmsNameGreaterThan(String value) {
            addCriterion("pms_name >", value, "pmsName");
            return (Criteria) this;
        }

        public Criteria andPmsNameGreaterThanOrEqualTo(String value) {
            addCriterion("pms_name >=", value, "pmsName");
            return (Criteria) this;
        }

        public Criteria andPmsNameLessThan(String value) {
            addCriterion("pms_name <", value, "pmsName");
            return (Criteria) this;
        }

        public Criteria andPmsNameLessThanOrEqualTo(String value) {
            addCriterion("pms_name <=", value, "pmsName");
            return (Criteria) this;
        }

        public Criteria andPmsNameLike(String value) {
            addCriterion("pms_name like", value, "pmsName");
            return (Criteria) this;
        }

        public Criteria andPmsNameNotLike(String value) {
            addCriterion("pms_name not like", value, "pmsName");
            return (Criteria) this;
        }

        public Criteria andPmsNameIn(List<String> values) {
            addCriterion("pms_name in", values, "pmsName");
            return (Criteria) this;
        }

        public Criteria andPmsNameNotIn(List<String> values) {
            addCriterion("pms_name not in", values, "pmsName");
            return (Criteria) this;
        }

        public Criteria andPmsNameBetween(String value1, String value2) {
            addCriterion("pms_name between", value1, value2, "pmsName");
            return (Criteria) this;
        }

        public Criteria andPmsNameNotBetween(String value1, String value2) {
            addCriterion("pms_name not between", value1, value2, "pmsName");
            return (Criteria) this;
        }

        public Criteria andPmsParentIdIsNull() {
            addCriterion("pms_parent_id is null");
            return (Criteria) this;
        }

        public Criteria andPmsParentIdIsNotNull() {
            addCriterion("pms_parent_id is not null");
            return (Criteria) this;
        }

        public Criteria andPmsParentIdEqualTo(Integer value) {
            addCriterion("pms_parent_id =", value, "pmsParentId");
            return (Criteria) this;
        }

        public Criteria andPmsParentIdNotEqualTo(Integer value) {
            addCriterion("pms_parent_id <>", value, "pmsParentId");
            return (Criteria) this;
        }

        public Criteria andPmsParentIdGreaterThan(Integer value) {
            addCriterion("pms_parent_id >", value, "pmsParentId");
            return (Criteria) this;
        }

        public Criteria andPmsParentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pms_parent_id >=", value, "pmsParentId");
            return (Criteria) this;
        }

        public Criteria andPmsParentIdLessThan(Integer value) {
            addCriterion("pms_parent_id <", value, "pmsParentId");
            return (Criteria) this;
        }

        public Criteria andPmsParentIdLessThanOrEqualTo(Integer value) {
            addCriterion("pms_parent_id <=", value, "pmsParentId");
            return (Criteria) this;
        }

        public Criteria andPmsParentIdIn(List<Integer> values) {
            addCriterion("pms_parent_id in", values, "pmsParentId");
            return (Criteria) this;
        }

        public Criteria andPmsParentIdNotIn(List<Integer> values) {
            addCriterion("pms_parent_id not in", values, "pmsParentId");
            return (Criteria) this;
        }

        public Criteria andPmsParentIdBetween(Integer value1, Integer value2) {
            addCriterion("pms_parent_id between", value1, value2, "pmsParentId");
            return (Criteria) this;
        }

        public Criteria andPmsParentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pms_parent_id not between", value1, value2, "pmsParentId");
            return (Criteria) this;
        }

        public Criteria andPathIsNull() {
            addCriterion("`path` is null");
            return (Criteria) this;
        }

        public Criteria andPathIsNotNull() {
            addCriterion("`path` is not null");
            return (Criteria) this;
        }

        public Criteria andPathEqualTo(String value) {
            addCriterion("`path` =", value, "path");
            return (Criteria) this;
        }

        public Criteria andPathNotEqualTo(String value) {
            addCriterion("`path` <>", value, "path");
            return (Criteria) this;
        }

        public Criteria andPathGreaterThan(String value) {
            addCriterion("`path` >", value, "path");
            return (Criteria) this;
        }

        public Criteria andPathGreaterThanOrEqualTo(String value) {
            addCriterion("`path` >=", value, "path");
            return (Criteria) this;
        }

        public Criteria andPathLessThan(String value) {
            addCriterion("`path` <", value, "path");
            return (Criteria) this;
        }

        public Criteria andPathLessThanOrEqualTo(String value) {
            addCriterion("`path` <=", value, "path");
            return (Criteria) this;
        }

        public Criteria andPathLike(String value) {
            addCriterion("`path` like", value, "path");
            return (Criteria) this;
        }

        public Criteria andPathNotLike(String value) {
            addCriterion("`path` not like", value, "path");
            return (Criteria) this;
        }

        public Criteria andPathIn(List<String> values) {
            addCriterion("`path` in", values, "path");
            return (Criteria) this;
        }

        public Criteria andPathNotIn(List<String> values) {
            addCriterion("`path` not in", values, "path");
            return (Criteria) this;
        }

        public Criteria andPathBetween(String value1, String value2) {
            addCriterion("`path` between", value1, value2, "path");
            return (Criteria) this;
        }

        public Criteria andPathNotBetween(String value1, String value2) {
            addCriterion("`path` not between", value1, value2, "path");
            return (Criteria) this;
        }

        public Criteria andLevelIsNull() {
            addCriterion("`level` is null");
            return (Criteria) this;
        }

        public Criteria andLevelIsNotNull() {
            addCriterion("`level` is not null");
            return (Criteria) this;
        }

        public Criteria andLevelEqualTo(String value) {
            addCriterion("`level` =", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotEqualTo(String value) {
            addCriterion("`level` <>", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThan(String value) {
            addCriterion("`level` >", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThanOrEqualTo(String value) {
            addCriterion("`level` >=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThan(String value) {
            addCriterion("`level` <", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThanOrEqualTo(String value) {
            addCriterion("`level` <=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLike(String value) {
            addCriterion("`level` like", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotLike(String value) {
            addCriterion("`level` not like", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelIn(List<String> values) {
            addCriterion("`level` in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotIn(List<String> values) {
            addCriterion("`level` not in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelBetween(String value1, String value2) {
            addCriterion("`level` between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotBetween(String value1, String value2) {
            addCriterion("`level` not between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("`type` is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("`type` is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(String value) {
            addCriterion("`type` =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(String value) {
            addCriterion("`type` <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(String value) {
            addCriterion("`type` >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(String value) {
            addCriterion("`type` >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(String value) {
            addCriterion("`type` <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(String value) {
            addCriterion("`type` <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLike(String value) {
            addCriterion("`type` like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotLike(String value) {
            addCriterion("`type` not like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<String> values) {
            addCriterion("`type` in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<String> values) {
            addCriterion("`type` not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(String value1, String value2) {
            addCriterion("`type` between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(String value1, String value2) {
            addCriterion("`type` not between", value1, value2, "type");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}